import request from '@/utils/request'

// 查询车辆订单列表
export function listCarorder(query) {
  return request({
    url: '/zhhq/carorder/list',
    method: 'get',
    params: query
  })
}

// 查询车辆订单详细
export function getCarorder(orderId) {
  return request({
    url: '/zhhq/carorder/' + orderId,
    method: 'get'
  })
}

// 新增车辆订单
export function addCarorder(data) {
  return request({
    url: '/zhhq/carorder',
    method: 'post',
    data: data
  })
}

// 修改车辆订单
export function updateCarorder(data) {
  return request({
    url: '/zhhq/carorder',
    method: 'put',
    data: data
  })
}

// 删除车辆订单
export function delCarorder(orderId) {
  return request({
    url: '/zhhq/carorder/' + orderId,
    method: 'delete'
  })
}
